import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.scss'
import './component/showDataList/style.scss'
import {Provider} from 'react-redux';
import store from "@/store/store";
import {HashRouter} from "react-router-dom";
import {initFunc} from "@/store/actions/count_action";
import {DevSupport} from "@react-buddy/ide-toolbox";
import {ComponentPreviews, useInitial} from "@/dev";
// @ts-ignore
store.dispatch(initFunc)
ReactDOM.createRoot(document.getElementById('root')!).render(
    <HashRouter>
        <Provider store={store}>
            <DevSupport ComponentPreviews={ComponentPreviews}
                        useInitialHook={useInitial}
            >
                <App/>
            </DevSupport>
        </Provider>
    </HashRouter>
)


